#!/usr/bin/env bash

rm -rf build

# for cross compile (that absolutely nobody wants)
# export CMAKE_TOOLCHAIN_FILE=$HOME/build/pytorch/RISCVToolchain.txt

export CC=riscv64-linux-gnu-gcc
export CXX=riscv64-linux-gnu-g++
export USE_CUDA=0
export USE_ROCM=0
export BLAS=OpenBLAS
export CMAKE_PREFIX_PATH=$HOME/build/openblas-c910

python setup.py build --cmake-only

# ccmake build
